package tech.aistar.day02;



public class IntegerCompareDemo {
    public static void main(String[] args) {
        //int->Integer类型
        //为true的范围是在[-128,127]
        Integer x=Integer.valueOf(128);
        Integer y=Integer.valueOf(128);
        System.out.println(x==y);//false

        Integer m=128;
        Integer n=128;
        System.out.println(m==n);//false

        Integer i=new Integer(10);
        Integer j=new Integer(10);
        System.out.println(i==j);//false


        int t=10;
        System.out.println(i==t);//true
    }
}
